package com.chiangleoi.appointment.appointments;

import java.util.Base64;

public class Main {


    public static void main(String[] args) {

        String originalString = "[{\"orderId\":null,\"money\":40,\"operator\":null,\"scheduleId\":\"19\",\"contactNumber\":null,\"endTime\":null,\"votesnum\":1,\"type\":\"1\",\"specOneTimes\":5,\"isWhole\":0,\"id\":0,\"placeName\":\"十二号场(小馆)\",\"ballCourtId\":\"03\",\"placeId\":38,\"classCode\":null,\"memberNumber\":null,\"appointments\":\"2024-11-30\",\"className\":\"羽毛周末通用票\",\"sjName\":\"12:00-13:00\",\"ctypeCode\":\"030401\",\"contacts\":\"0\",\"beginTime\":null}]";

        String encodedString = Base64.getEncoder().encodeToString(originalString.getBytes());
        System.out.println("Encoded String: " + encodedString);


        String oldString1 = "W3siaWQiOj6AsImJhbGxDb3VydElVkIjoiMDMiLCJzak5hbWUiOiI4OjAwLTk6MDAiLCJzY2hlZHVsZUlkIjoiMTUiLCJwbGFjZU5hbWUiOiLljYHkuInlj7flnLoo5bCP6aaGKSIsInBsYWNlSWQiOjM5LCJ0eXBlIjoiMSIsImNsYXNzTmFtZSI6Iue+veavm+aXqeaXpeWcuiIsImNsYXNzQ29kZSI6IjA2IiwibW9uZXkiOjI0LCJjb250YWN0cyI6IjAiLCJjb250YWN0TnVtYmVyIjpudWxsLCJtZW1iZXJOdW1iZXIiOm51bGwsImFwcG9pbnRtZW50cyI6IjIwMjQtMTEtMjkiLCJvcGVyYXRvciI6bnVsbCwiZW5kVGltZSI6bnVsbCwiYmVnaW5UaW1lIjpudWxsLCJzcGVjT25lVGltZXMiOjMsImN0eXBlQ29kZSI6IjAzMDEwMSIsImlzV2hvbGUiOjAsIm9yZGVySWQiOm51bGwsInZvdGVzbnVtIjoxfV0=";
        String oldString2 = "W3siaWQiOjAsImJhbGxDb3VydElkIjoiMDMiLCJzak5hbWUiOiI4OjAwLTk6MDAiLCJzY2hlZHVsZUlkIjoiMTUiLCJwbGFjZU5hbWUiOiLljYHkuInlj7flnLoo5bCP6aaGKSIsInBsYWNlSWQiOjM5LCJ0eXBlIjoiMSIsImNsYXNzTmFtZSI6Iue+veavm+aXqeaXpeWcuiIsImNsYXNzQ29kZSI6IjA2IiwibW9uZXkiOjI0LCJjb250YWN0cyI6IjAiLCJjb250YWN0TnVtYmVyIjpudWxsLCJtZW1iZXJOdW1iZXIiOm51bGwsImFwcG9pbnRtZW50cyI6IjIwMjQtMTEtMjkiLCJvcGVyYXRvciI6bnVsbCwiZW5kVGltZSI6bnVsbCwiYmVnaW5UaW1lIjpudWxsLCJzcGVjT25lVGltZXMiOjMsImN0eXBlQ29kZSI6IjAzMDEwMSIsImlzV2hvbGUiOjAsIm9yZGVySWQiOm51bGwsInZvdGVzbnVtIjoxfV0=";

//        byte[] decodeString1 = Base64.getDecoder().decode(oldString1);
//        System.out.println("Decoded String: " + new String(decodeString1));


//        byte[] decodeString2 = Base64.getDecoder().decode(oldString2);
//        System.out.println("Decoded String: " + new String(decodeString2));
    }

}
